home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / sr / info.lha / info-sr.1992 / 000021_gmt _Fri Nov 20 14:24:34 1992.msg < prev    next >
Text File  |  1993-07-24  |  2KB  |  44 lines

  1. Received: from owl.cs.arizona.edu by optima.cs.arizona.edu (5.65c/15) via SMTP
  2.     id AA06698; Fri, 20 Nov 1992 14:24:41 MST
  3. Date: Fri, 20 Nov 1992 14:24:34 MST
  4. From: "Gregg Townsend" <gmt>
  5. Message-Id: <199211202124.AA02478@owl.cs.arizona.edu>
  6. Received: by owl.cs.arizona.edu; Fri, 20 Nov 1992 14:24:34 MST
  7. To: eric@cs.sfu.ca
  8. Subject: Re: Priorities in SR
  9. Cc: info-sr
  10.  
  11. There was a problem in the scheduler when awakening blocked processes.
  12. It is fixed by adding a few lines of code to rts/process.c (see below).
  13.  
  14. There is another unresolved problem when processes of different priorities
  15. are blocked simultaneously waiting for input from the same operation class,
  16. for example when using an array of semaphores or ops.  I don't think this
  17. problem affects your program.
  18.  
  19. We're not aware of any problems involving the "by" clause of an input
  20. statement, but if you have a small example that shows an error we'll be
  21. glad to look at it.
  22.  
  23.     Gregg Townsend / Computer Science Dept / Univ of Arizona / Tucson, AZ 85721
  24.     +1 602 621 4325     gmt@cs.arizona.edu     110 57 16 W / 32 13 45 N / +758m
  25.  
  26. ------------------------------------------------------------------------------
  27.  
  28. *** /usr/sr/v2/rts/process.c    Wed Aug 19 20:19:46 1992
  29. --- /usr/gmt/v2/rts/process.c    Fri Nov 20 10:48:33 1992
  30. ***************
  31. *** 457,462 ****
  32. --- 457,467 ----
  33.   Procq *pl;
  34.   Proc  pr;
  35.   {
  36. +     if (pl == &sr_ready_list) {
  37. +     sr_add_readyq (pr);
  38. +     return;
  39. +     }
  40.       LOCK_QUEUE ("sr_enqueue");
  41.   
  42.       if ((pl == NULL) || (pr == NULL))
  43.